sc.power
Utility functions related to the computer's power consumption and input.
Functions
getConsumtion
sc.power.getConsumtion()
Gets the total power the computer is currently consuming.
Returns:
- [ number ] Total power consumed by the computer (in kilowatts).
getReceivingPower
sc.power.getReceivingPower()
Gets the total power the computer is receiving from connected power sources.
Returns:
- [ number ] Total incoming power available to the computer (in kilowatts).